<?php
namespace Sys\Controller;
use Todo\Controller\BackendController;
use Todo\Service\DictService;

/**
 * Class DictController 数据字典
 * @package Sys\Controller
 */
class DictController extends BackendController {

    protected $_order = 'sort ASC';

    public function js(){
        $this->_loadModel();
        $map = $this->_model->findAll(true);
        $this->assign('data', $map);
        $this->display('js', 'utf-8', 'application/javascript');
    }
}